#
# Two ways of generating a 2D heat map from ascii data
#
set terminal png 
set output "heatmap.png"
#set size ratio 0.5

#set title "Heat Map for inter-cloud and localhost bandwidths in Mbits/sec"
unset key
unset title
set tic scale 0

# Color runs from white to green
#set palette rgbformula -7,2,-7
#set palette rgbformula 34,35,36
#set palette rgbformula 7,5,15
#set palette rgbformula 3,11,6
#set palette rgbformula 30,31,32
set palette rgbformula 33,13,10
#7,5,15   ... traditional pm3d (black-blue-red-yellow)
#3,11,6   ... green-red-violet
#23,28,3  ... ocean (green-blue-white); try also all other permutations
#21,22,23 ... hot (black-red-yellow-white)
#30,31,32 ... color printable on gray (black-blue-violet-yellow-white)
#33,13,10 ... rainbow (blue-green-yellow-red)
#34,35,36 ... AFM hot (black-red-yellow-white)
set cbrange [-10:900]
set cblabel "Bandwidth"
unset cbtics

set xrange [-0.5:4.5]
set yrange [-0.5:4.5]

set xtics ("submit-host" 0, "EC2-west" 1, "EC2-east" 2, "RedCloud" 3, "Futuregrid" 4)
set ytics ("submit-host" 0, "EC2-west" 1, "EC2-east" 2, "RedCloud" 3, "Futuregrid" 4)

set view map
splot 'heatmap.dat' matrix with image
